
#if UNIT_TEST

#region Imports

using System;
using System.Xml;

using NUnit.Framework;

#endregion

namespace Justa.Messaging.Test
{
    /// <summary>
    /// 
    /// </summary>
    /// 
    [TestFixture]
    public class MessageReceiverGatewayTest
    {
        /// <summary>
        /// 
        /// </summary>
        /// 
        [Test]
        public void TestReceiveObject()
        {
            MessageGateway<string> gateway = new MessageGateway<string>("boomerang");
            gateway.Send("abel");
            string response = gateway.Receive(10000);

            Assert.IsNotNull(response);
            Assert.IsNotEmpty(response);

            Console.WriteLine(response);
        }
    }
}

#endif